# Author: Yubin Lim(purewell@gmail.com)
# Date: 2008-01-18
# License: BSD License
# Copyright: All rights reserved by Yubin Lim.

configure_file(purewell.spec.in
"${CMAKE_CURRENT_SOURCE_DIR}/purewell.spec" @ONLY)

set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Purewell Library Development Kit")
set(CPACK_PACKAGE_VENDOR "Purewell")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/COPYRIGHT")
set(CPACK_PACKAGE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYRIGHT")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_PATCH_VERSION}")
set(CPACK_PACKAGE_VERSION_RELEASE "${PROJECT_RELEASE_VERSION}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "purewell-${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION}")

include(CPack)

